home *** CD-ROM | disk | FTP | other *** search
/ NOVA - For the NeXT Workstation / NOVA - For the NeXT Workstation.iso / Documents / NeXTAnswers / ib.269 < prev    next >
Text File  |  1992-02-06  |  2KB  |  36 lines

  1. {\rtf0\ansi{\fonttbl\f0\fnil Times-Roman;\f2\fmodern Courier;}
  2. \paperw13040
  3. \paperh10200
  4. \margl120
  5. \margr120
  6. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\tx5860\tx6400\tx6920\tx7460\tx8000\tx8540\f0\b0\i0\ul0\fs28 libraries makefile \
  7. \
  8. Q:  How can I tell 
  9. \pard Interface Builder
  10. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\tx5860\tx6400\tx6920\tx7460\tx8000\tx8540  to link against more libraries?\
  11. \
  12. A:  In version 2.0, this is easy. Select "Other libs" in the Project inspector, and click on "Add..."  An OpenPanel comes up allowing you to add a library. Interface Builder will list added libraries in alphabetical order in the Project Inspector's browser. If necessary, you can change their order by control-dragging the library names. If the Library doesn't live in /usr/lib you will also have to add a Makefile.preamble file to the project with the variable OTHER_LIBS set to the libary's directory. For example\
  13. \
  14.  
  15. \f2\fs24     OTHER_LIBS = -L/OtherLibsDir\
  16.  
  17. \f0\fs28 \
  18. In version 1.0, you need to have a file called Makefile.preamble in addition to the Makefile.  In this file, assign a value to the variable OTHER_LIBS.  For example:\
  19. \
  20.  
  21. \f2\fs24     OTHER_LIBS = -ltext\
  22.  
  23. \f0\fs28 \
  24. The value of LIBS will be the library listed above plus NeXT_s and sys_s, which are linked in by the Makefile.\
  25. \
  26. See also NextAnswer dsp.453.\
  27. \
  28. QA269\
  29. \
  30.  
  31. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320 Valid for 1.0\
  32. Valid for 2.0\
  33.  
  34. \pard\tx520\tx1060\tx1600\tx2120\tx2660\tx3200\tx3720\tx4260\tx4800\tx5320\tx5860\tx6400\tx6920\tx7460\tx8000\tx8540 \
  35.  
  36.